<script setup lang="ts">
import { ref } from 'vue'
import router from '@/router'
import { useLoginStore } from '../store/useLoginStore'

const loginStore = useLoginStore()
</script>

<template>
  <div class="common-layout">
    <el-container>
      <el-header>欢迎用户 : {{ loginStore.username }}</el-header>
      <el-container>
        <el-aside width="150px">
          <el-menu>
            <el-menu-item index="merchantExamine" @click="router.push('/merchantExamine')">商家审核</el-menu-item>
            <el-menu-item index="merchantManager" @click="router.push('/merchantManager')">商家管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>

</style>